package com.likeyoudo.common.msg;

/**
 * 消息对象的建造者模式封装
 * @author LikeYouDo
 * @date 2023/12/19 18:41
 */
public class MsgEventBuilder {
    String msg;

    String type;

    String data;

    public MsgEventBuilder() {
    }

    public MsgEventBuilder msg(String msg) {
        this.msg = msg;
        return this;
    }

    public MsgEventBuilder type(String type) {
        this.type = type;
        return this;
    }

    public MsgEventBuilder data(String data) {
        this.data = data;
        return this;
    }

    public MsgEvent build() {
        return new MsgEvent(this);
    }
}
